﻿<%@ Page Title="Plan Inventory" Language="C#" Culture="auto" UICulture="auto" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PlanInventory.aspx.cs" Inherits="IFD2.PlanInventory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link href="Datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>

    <form id="form1" runat="server" role="form" class="form-inline" defaultbutton="lbtnQuery">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="container-fluid body-content" style="width:100%;">

    <div class="row">
        <div class="col-sm-2 well well-sm">
            <h5><asp:Literal ID="litTitle" runat="server" meta:resourcekey="tipPageTitle"></asp:Literal></h5>
            <div class="form-group">
                <asp:Label ID="Label2" runat="server" meta:resourcekey="Flight" Text="Flight:"></asp:Label>
                <asp:Label ID="lblAirline" runat="server" Font-Bold="true"></asp:Label>
                <asp:Label ID="lblFltNo" runat="server" Font-Bold="true"></asp:Label><br />
                <asp:Label ID="Label3" runat="server" meta:resourcekey="PlanID" Text="Plan ID:"></asp:Label>
                <asp:Label ID="lblPlanID" runat="server" Font-Bold="true"></asp:Label>
            </div>
            <br class="hidden-xs"/><br class="hidden-xs"/>
            <asp:LinkButton ID="lbtnQuery" runat="server" CssClass="form-control input-sm btn-primary text-center" Width="100%" ToolTip="" meta:resourcekey="tipQuery" OnClick="lbtnQuery_Click"> <span class="glyphicon glyphicon-search" style="font-size:large;"></span></asp:LinkButton>
            <p></p><%--没有此行(或&nbsp;)，上面的按钮在手机模式(xs)下，只有上半部可以点击！--%>
        </div>
        <div class="col-sm-10 well well-sm">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server"><ContentTemplate>
                <div class="panel">
                    <div class="panel-heading btn-primary">
                        <h6 class="panel-title" id="secPlanInfo"><!--统一h6,有专用css-->
                            <asp:Literal ID="Literal3" runat="server" meta:resourcekey="PlanInfo" Text="Plan Info."></asp:Literal>
                        </h6>
                    </div>
                    <div class="panel-body panel-collapse collapse in">
                        <div class="table-responsive">
                            <asp:GridView ID="grdPlanRoot" runat="server" AutoGenerateColumns="False" CellPadding="4" style="min-width:1000px;width:100%;"
                                DataKeyNames="airline,flt_no,id" DataSourceID="sqlPlanInfo" ForeColor="#333333" GridLines="None" >
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="ori_airport" HeaderText="ori_airport" SortExpression="ori_airport"  meta:resourcekey="ori_airport" />
                                    <asp:BoundField DataField="des_airport" HeaderText="des_airport" SortExpression="des_airport"  meta:resourcekey="des_airport" />
                                    <asp:BoundField DataField="dep_time" HeaderText="Dep. Time" SortExpression="dep_time"  meta:resourcekey="dep_time" DataFormatString="{0:t}" />
                                    <asp:BoundField DataField="arr_time" HeaderText="Arr. Time" SortExpression="arr_time"  meta:resourcekey="arr_time" DataFormatString="{0:t}" />
                                    <asp:BoundField DataField="fly_minutes" HeaderText="fly_minutes" SortExpression="fly_minutes"  meta:resourcekey="fly_minutes" />
                                    <asp:BoundField DataField="ac_type" HeaderText="ac_type" SortExpression="ac_type"  meta:resourcekey="ac_type" />
                                    <asp:BoundField DataField="tail_no" HeaderText="tail_no" SortExpression="tail_no"  meta:resourcekey="tail_no" />
                                    <asp:BoundField DataField="surcharge_type" HeaderText="surcharge_type" SortExpression="surcharge_type"  meta:resourcekey="surcharge_type" />
                                    <asp:BoundField DataField="done_user" HeaderText="done_user" SortExpression="done_user"  meta:resourcekey="done_user" />
                                    <asp:BoundField DataField="done_time" HeaderText="done_time" SortExpression="done_time"  meta:resourcekey="done_time" />
                                </Columns>
                                <RowStyle BackColor="#EFF3FB" />
                                <EditRowStyle BackColor="#2461BF" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                            <asp:SqlDataSource ID="sqlPlanInfo" runat="server" 
                                ConnectionString="<%$ ConnectionStrings:IFD_DB %>" DataSourceMode="DataReader" 
                                SelectCommand="bll_plan_get_root_info" SelectCommandType="StoredProcedure">
                                <SelectParameters>
                                    <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                                    <asp:ControlParameter ControlID="lblFltNo" Name="flt_no" PropertyName="Text" Type="String" />
                                    <asp:ControlParameter ControlID="lblPlanID" Name="plan_id" PropertyName="Text" Type="String" />
                                </SelectParameters>
                            </asp:SqlDataSource>
                        </div>
                    </div>
                </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
                <div class="panel">
                    <div class="panel-heading btn-primary">
                        <h6 class="panel-title" id="secLegCabin"><!--统一h6,有专用css-->
                        <a data-toggle="collapse"  href="#LegCabin">
                            <asp:Literal ID="Literal1" runat="server" meta:resourcekey="LegCabin" Text="Leg/Cabin:"></asp:Literal>
                            &nbsp;<b class="caret"></b>
                        </a>
                        </h6>
                    </div>
                    
                    <div id="LegCabin" class="panel-body panel-collapse collapse in">
                        <div class="table-responsive">
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" style="min-width:700px;width:100%;" class="table-hover">
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="stop_sn" HeaderText="stop_sn" meta:resourcekey="stop_sn" SortExpression="stop_sn" Visible="false" />
                                    <asp:BoundField DataField="airport" HeaderText="airport" meta:resourcekey="airport" SortExpression="airport" />
                                    <asp:TemplateField HeaderText="cabin" meta:resourcekey="cabin1">
                                        <ItemTemplate>
                                            <input name="KEY" type="radio" value='<%# Eval("airline")+"|"+Eval("flt_no")+"|"+Eval("id")+"|"+Eval("airport")+"|"+Eval("cabin") %>' />
                                            <%# Eval("cabin") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="cap" HeaderText="cap" meta:resourcekey="cap" SortExpression="cap" />
                                    <asp:BoundField DataField="max_opn" HeaderText="max_opn" meta:resourcekey="max_opn" SortExpression="max_opn" />
                                    <asp:BoundField DataField="cabin_sn" HeaderText="cabin_sn" meta:resourcekey="cabin_sn" SortExpression="cabin_sn" Visible="false" />
                                    <asp:BoundField DataField="done_user" HeaderText="done_user" meta:resourcekey="done_user" SortExpression="done_user" />
                                    <asp:BoundField DataField="done_time" HeaderText="done_time" meta:resourcekey="done_time" SortExpression="done_time" />
                                </Columns>
                                <RowStyle BackColor="#EFF3FB" />
                                <EditRowStyle BackColor="#2461BF" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </div>
                        <div class="btn-group">
                            <asp:Button ID="btnRefresh" runat="server" CssClass="btn btn-sm btn-default" OnClick="btnRefresh_Click" Text="Refresh" meta:resourcekey="Refresh" />
                            <asp:Button ID="btnClear" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="ClearInventory" OnClick="btnClear_Click" Text="Clear Inventory" />
                        </div>
                        <div class="well well-sm">
                            <asp:Label ID="Label4" runat="server" meta:resourcekey="MaxOpen" Text="Max Open:"></asp:Label>
                            <asp:TextBox ID="txtValue" runat="server" Width="56px"></asp:TextBox>&nbsp;
                            <asp:Button ID="btnSetMaxOpn" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="SetMaxOpen" OnClick="btnSetMaxOpn_Click" Text="Set Max Open" />
                        </div>
                        <asp:Label ID="lblCabinError" runat="server" CssClass="ifdMessage"></asp:Label>
                    </div>

                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                        SelectCommand="bll_plan_get_cabins_info" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                        <SelectParameters>
                            <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                            <asp:ControlParameter ControlID="hidPlanFlt" Name="flt_no" PropertyName="Value" Type="String" />
                            <asp:ControlParameter ControlID="hidPlanID" Name="id" PropertyName="Value" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:HiddenField ID="hidPlanFlt" runat="server" />
                    <asp:HiddenField ID="hidPlanID" runat="server" />
                </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>
                <div class="panel">
                    <div class="panel-heading btn-primary">
                        <h6 class="panel-title" id="secSegClass"><!--统一h6,有专用css-->
                        <a data-toggle="collapse"  href="#SegClass">
                            <asp:Literal ID="Literal2" runat="server" meta:resourcekey="SegClass" Text="Seg/Class:"></asp:Literal>
                            &nbsp;<b class="caret"></b>
                        </a>
                        </h6>
                    </div>
                    <div id="SegClass" class="panel-body panel-collapse collapse in">
                        <div class="table-responsive">
                            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                DataSourceID="sqlTabClasses" ForeColor="#333333" GridLines="None" style="min-width:800px;width:100%;" class="table-hover">
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="ori_airport" HeaderText="ori_airport" meta:resourceKey="ori_airport" SortExpression="ori_airport" />
                                    <asp:BoundField DataField="des_airport" HeaderText="des_airport" meta:resourceKey="des_airport" SortExpression="des_airport" />
                                    <asp:BoundField DataField="cabin" HeaderText="cabin" meta:resourceKey="cabin1" SortExpression="cabin" />
                                    <asp:TemplateField HeaderText="class" meta:resourceKey="class1">
                                        <ItemTemplate>
                                            <input name="KEY" type="radio" value='<%# Eval("ori_airport")+"|"+Eval("des_airport")+"|"+Eval("class") %>' />
                                            <%# Eval("class") %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="class_sn" HeaderText="class_sn" meta:resourceKey="class_sn" SortExpression="class_sn" />
                                    <asp:BoundField DataField="market_airline" HeaderText="market_airline" meta:resourceKey="market_airline" SortExpression="market_airline" />
                                    <asp:BoundField DataField="status" HeaderText="status" meta:resourceKey="status1" SortExpression="status" />
                                    <asp:BoundField DataField="max_opn" HeaderText="max_opn" meta:resourceKey="max_opn" SortExpression="max_opn" />
                                    <asp:BoundField DataField="total_avail" HeaderText="total_avail" meta:resourceKey="total_avail" SortExpression="total_avail" />
                                    <asp:CheckBoxField DataField="nested" HeaderText="nested" meta:resourceKey="nested1" SortExpression="nested" />
                                    <asp:BoundField DataField="class_dbf" HeaderText="class_dbf" meta:resourceKey="class_dbf" SortExpression="class_dbf" Visible="false"/>
                                    <asp:BoundField DataField="done_user" HeaderText="done_user" meta:resourceKey="done_user" SortExpression="done_user" />
                                    <asp:BoundField DataField="done_time" HeaderText="done_time" meta:resourceKey="done_time" SortExpression="done_time" />
                                </Columns>
                                <RowStyle BackColor="#EFF3FB" />
                                <EditRowStyle BackColor="#2461BF" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                        </div>
                        <div class="btn-group">
                            <asp:Button ID="btnRefresh2" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="Refresh" OnClick="btnRefresh2_Click" Text="Refresh" />
                            <asp:Button ID="btnDelete" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="Delete" OnClick="btnDelete_Click" Text="Delete" />
                            <asp:Button ID="btnCalculate" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="CalculateAvail" OnClick="btnCalculate_Click" Text="Calculate Avail." />
                            <asp:Button ID="btnImportProducts" runat="server" CssClass="btn btn-sm btn-default" Enabled="False" Text="Import Products" Visible="false" />
                        </div>
                        <div class="well well-sm">
                            <asp:Label ID="Label14" runat="server" Text="Date:" meta:resourcekey="FltDate"></asp:Label>
                            <asp:TextBox ID="txtFltDate" runat="server" Width="91px" MaxLength="10" CssClass="form_date"></asp:TextBox>
                            <asp:Button ID="btnProducts" runat="server" CssClass="btn btn-sm btn-default" Text="Products..." meta:resourcekey="Products" OnClick="btnProducts_Click"/>
                        </div>
                        <div class="well well-sm">
                            <div class="form-group">
                            <asp:Label ID="Label15" runat="server" Text="Class S/N:" meta:resourcekey="ClassSn"></asp:Label>
                            <asp:TextBox ID="txtClassSn" runat="server" Width="36px" ></asp:TextBox>
                            </div>
                            <div class="form-group">
                            <asp:Label ID="Label12" runat="server" meta:resourcekey="Status" Text="Status:"></asp:Label>&nbsp;
                            <asp:DropDownList
                                ID="lstStatus2" runat="server">
                                <asp:ListItem Selected="True" Value="O" Text="Open" meta:resourcekey="Open"></asp:ListItem>
                                <asp:ListItem Value="R" Text="Request Only" meta:resourcekey="RequestOnly"></asp:ListItem>
                                <asp:ListItem Value="T" meta:resourcekey="TransferIn">Transfer-in</asp:ListItem>
                                <asp:ListItem Value="B" Text="Blocked" meta:resourcekey="Blocked"></asp:ListItem>
                            </asp:DropDownList>
                            </div>
                            <div class="form-group">
                            <asp:Label ID="Label10" runat="server" meta:resourcekey="MaxOpen" Text="Max Open:"></asp:Label>
                            <asp:TextBox ID="txtMaxOpn2" runat="server" Width="48px"></asp:TextBox>
                            </div>
                            <div class="form-group">
                            <asp:CheckBox ID="chkNested" runat="server" meta:resourcekey="Nested" Text="Nested" Checked="True" />
                            </div>
                            <asp:Button ID="btnUpdate" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="Update" OnClick="btnUpdate_Click" Text="Update" />
                        </div>
                        <asp:Label ID="lblError" runat="server" CssClass="ifdMessage"></asp:Label>
                        <div class="well well-sm">
                            <div class="form-group">
                            <asp:Label ID="Label9" runat="server" meta:resourcekey="Segment" Text="Segment:"></asp:Label>
                            <asp:DropDownList ID="lstOri" runat="server" DataSourceID="sqlOrigins" DataTextField="ori_airport" DataValueField="ori_airport"></asp:DropDownList>-
                            <asp:DropDownList ID="lstDes" runat="server" DataSourceID="sqlDestinations" DataTextField="des_airport" DataValueField="des_airport"></asp:DropDownList>
                            </div>
                            <div class="form-group">
                            <asp:Label ID="Label51" runat="server" meta:resourcekey="Cabin" Text="Cabin:"></asp:Label>&nbsp;
                            <asp:DropDownList
                                ID="lstCabins" runat="server" AutoPostBack="True" DataSourceID="sqlCabins" DataTextField="cabin"
                                DataValueField="cabin" OnSelectedIndexChanged="lstCabins_SelectedIndexChanged">
                            </asp:DropDownList>
                            </div>
                            <div class="form-group">
                            <asp:Label ID="Label41" runat="server" meta:resourcekey="Class" Text="Class:"></asp:Label>&nbsp;
                            <asp:DropDownList
                                ID="lstClasses" runat="server" DataSourceID="sqlClasses" DataTextField="class"
                                DataValueField="class">
                            </asp:DropDownList>
                            <asp:CheckBox ID="chkNested2" runat="server" meta:resourcekey="Nested" Text="Nested" Checked="True" />
                            </div>
                            <div class="form-group">
                            <asp:Label ID="Label13" runat="server" Text="Market Airline:" meta:resourcekey="MarketAirline" ForeColor="Red"></asp:Label>
                            <asp:DropDownList ID="lstAirines" runat="server" DataSourceID="sqlAirlineCodes" DataTextField="code"
                                DataValueField="code">
                            </asp:DropDownList>
                            </div>
                            <div class="form-group">
                            <asp:Label ID="Label6" runat="server" meta:resourcekey="Status" Text="Status:"></asp:Label>
                            <asp:DropDownList ID="lstStatus" runat="server">
                                <asp:ListItem Selected="True" Value="O" Text="Open" meta:resourcekey="Open"></asp:ListItem>
                                <asp:ListItem Value="R" Text="Request Only" meta:resourcekey="RequestOnly"></asp:ListItem>
                                <asp:ListItem Value="T" meta:resourcekey="TransferIn">Transfer-in</asp:ListItem>
                                <asp:ListItem Value="B" Text="Blocked" meta:resourcekey="Blocked"></asp:ListItem>
                            </asp:DropDownList>
                            </div>
                            <div class="form-group">
                            <asp:Label ID="Label7" runat="server" meta:resourcekey="MaxOpen" Text="Max Open:"></asp:Label>
                            <asp:TextBox ID="txtMaxOpn" runat="server" Width="48px"></asp:TextBox>
                            </div>
                            <asp:Button ID="btnAdd" runat="server" CssClass="btn btn-sm btn-default" meta:resourcekey="AddClass" OnClick="btnAdd_Click" Text="Add Class" />
                        </div>
                    </div>

                    <asp:SqlDataSource ID="sqlTabClasses" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                        SelectCommand="bll_plan_get_classes_info" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                        <SelectParameters>
                            <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                            <asp:ControlParameter ControlID="hidPlanFlt2" Name="flt_no" PropertyName="Value" Type="String" />
                            <asp:ControlParameter ControlID="hidPlanID2" Name="id" PropertyName="Value" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <asp:HiddenField ID="hidPlanFlt2" runat="server" />
                    <asp:HiddenField ID="hidPlanID2" runat="server" />
                </div>
            </ContentTemplate></asp:UpdatePanel>

            <asp:SqlDataSource ID="sqlOrigins" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                SelectCommand="bll_plan_get_ori_airports" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                <SelectParameters>
                    <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                    <asp:ControlParameter ControlID="lblFltNo" Name="flt_no" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="lblPlanID" Name="plan_id" PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="sqlDestinations" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                SelectCommand="bll_plan_get_des_airports" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                <SelectParameters>
                    <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                    <asp:ControlParameter ControlID="lblFltNo" Name="flt_no" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="lblPlanID" Name="plan_id" PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="sqlCabins" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                SelectCommand="bll_plan_get_cabin_codes" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                <SelectParameters>
                    <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                    <asp:ControlParameter ControlID="lblFltNo" Name="flt_no" PropertyName="Text" Type="String" />
                    <asp:ControlParameter ControlID="lblPlanID" Name="plan_id" PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="sqlClasses" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                SelectCommand="bll_airline_get_class_codes_by_cabin" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
                <SelectParameters>
                    <asp:SessionParameter Name="airline" SessionField="AIRLINE" Type="String" />
                    <asp:ControlParameter ControlID="lstCabins" Name="cabin" PropertyName="SelectedValue"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="sqlAirlineCodes" runat="server" ConnectionString="<%$ ConnectionStrings:IFD_DB %>"
                SelectCommand="bll_airline_get_codes" SelectCommandType="StoredProcedure" DataSourceMode="DataReader">
            </asp:SqlDataSource>
        </div>
    </div>

    </div></form>

    <script src="Datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script src="JS/ScrollableGridPlugin.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var win_height = parseInt($(window).height());
            var tab_new_height= win_height-50-100;//菜单占50， 为便于操作留空100
            if ($('#<%=GridView2.ClientID %>').height()>tab_new_height)
                $('#<%=GridView2.ClientID %>').Scrollable({ ScrollHeight: tab_new_height });

            //$('.form_datetime').datetimepicker({
            //    format: 'yyyy-m-d hh:ii',
            //    weekStart: 1,
            //    todayBtn: 1,
            //    autoclose: 1,
            //    todayHighlight: 1,
            //    startView: 'month',
            //    forceParse: 0,
            //    showMeridian: 0
            //});
            $('.form_date').datetimepicker({
                format: 'yyyy-m-d',
                weekStart: 1,
                todayBtn: 1,
                autoclose: 1,
                todayHighlight: 1,
                startView: 'month',
                minView: 'month',
                forceParse: 0
            });
            //$('.form_time').datetimepicker({
            //    format: 'hh:ii',
            //    weekStart: 1,
            //    todayBtn: 1,
            //    autoclose: 1,
            //    todayHighlight: 1,
            //    startView: 'day',
            //    minView: 'hour',
            //    maxView: 'day',
            //    forceParse: 0
            //});
        });
    </script>

</asp:Content>
